Skip to content

Add changes required for Gcmarker#58

Open
nayanjd-do wants to merge 2 commits intomasterfrom
ndas/docr/gc-marker
Open

Add changes required for Gcmarker#58
nayanjd-do wants to merge 2 commits intomasterfrom
ndas/docr/gc-marker

Conversation

@nayanjd-do
Copy link

Changes:

  • Add Stat method for ManifestService
  • Add InvalidAccessKeyId type for checking invalid access key from S3 api

@nayanjd-do nayanjd-do marked this pull request as ready for review January 20, 2026 04:20
return true, nil
}

func (ms *manifestStore) Stat(ctx context.Context, dgst digest.Digest) (distribution.Descriptor, error) {
Copy link

@gane5hvarma gane5hvarma Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we can have stat method in our dataplane code instead of distribution repo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can but I thought this would be an apt place to be since all other types have a Stat method but for some reason ManifestService does not.

descriptor, err := ms.blobStore.Stat(ctx, dgst)
if err != nil {
if err == distribution.ErrBlobUnknown {
return distribution.Descriptor{}, distribution.ErrManifestUnknownRevision{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add err too to have the stack trace on what happened.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want stack trace, we can add it to data plane code instead of the distribution fork. Better to keep this fork lean and minimal diff with respect to open source's distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants